package com.njwb.day03;

public class Test05 {
    public static void main(String[] args) {
        int i=10;
        double d=1.1;
        System.out.println(i);//10
        System.out.println(d);//1.1
        fn(i,d);//实参i和d是main方法中定义的变量i和d
        System.out.println(i);//10
        System.out.println(d);//1.1
    }
    //基本数据类型传值：byte short int long float double char boolean
    public static void fn(int i,double d){//fn方法中定义变量i和d
        i=i+10;
        d=3.1415927;
    }
}
